#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include "nvs_flash.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "esp_log.h"

#include "user_rc522.h"
#include "user_spi.h"


void app_main(void)
{
    ESP_ERROR_CHECK(nvs_flash_init());
    xTaskCreate(user_rc522_task, "user_rc522_task", 4096 * 2, NULL, 4, NULL);
    
    while (1)
    {
        vTaskDelay(2000 / portTICK_PERIOD_MS);                                                        // 100ms
    }
}
